package org.mike.springboot.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ConfigurationAnnotationTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TestConfig.class);
        System.out.println("TestConfig = " + context.getBean(TestConfig.class));
        System.out.println("TestBean = " + context.getBean("tb"));
        AnnotationConfigApplicationContext context2 = new AnnotationConfigApplicationContext(TestConfig2.class);
        System.out.println("TestConfig2 = " + context2.getBean(TestConfig2.class));
        /**
         * TestConfig = org.mike.springboot.annotation.TestConfig$$EnhancerBySpringCGLIB$$f238c83b@47e2e487
         * TestConfig2 = org.mike.springboot.annotation.TestConfig2@26e356f0
         */
    }
}
